package com.ymttest.database.sqlwapper.godmch;

import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.afterserviceinfo;
import com.ymttest.database.model.afterserviceinfoExample;
import com.ymttest.utils.EnvSetup;
/************************************************************************************
 * @File name : afterserviceinfoWapperWapper.java
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *godmach
 ************************************************************************************/
public class afterserviceinfoWapper {
	SqlManager manage;
	public afterserviceinfoWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
//	public  List<afterserviceinfo> selectby(Map<String,Object> map) throws InterruptedException {
//		List<afterserviceinfo> list = manage.getSelectResults("com.ymttest.database.mapping.godmch.afterserviceinfoMapper.selectby",map);
//		manage.commit();
//		return list;
//	}
	
	public  List<afterserviceinfo> selectByExample(afterserviceinfoExample example) throws InterruptedException {
		List<afterserviceinfo> list = manage.getSelectResults("com.ymttest.database.mapping.godmch.afterserviceinfoMapper.selectByExample",example);
		manage.commit();
		return list;
	}
	
	public  afterserviceinfo selectByPrimaryKey(Integer agentType) throws InterruptedException {
		afterserviceinfo model=new afterserviceinfo();
		List<afterserviceinfo> lst = manage.getSelectResults("com.ymttest.database.mapping.godmch.afterserviceinfoMapper.selectByPrimaryKey",agentType);
		if(lst.size()>0)
			 model=lst.get(0);
		manage.commit();
		return model;
	}
	
	public static void main(String args[]) {
	  
	}
}
